@layout("/common/_container.html"){
<style>
    input {
        border: 1px solid #a9a9a9;
    }
    input, select {
        border-radius: 5px;
        padding-left: 10px;
    }
    .ul_li > li{
        float: left;
        margin-right: 35px;
    }
    .ul_li label {
        padding-right: 9px;
    }
    .record_box ul {
        padding: 0;
        margin: 0;
    }
    .btn_box button {
        margin: 0;
        color: white;
        background: #2b6594;
        padding: 6px 30px;
        font-size: 1em;
    }
    .bigSize {
        font-size: 1.2em;
    }
    .selectBox {
        width: 180px;
        height: 39px
    }
</style>
<div class="ibox float-e-margins ">
    <div class="ibox-content record_box">
        <div style="display: none">
            <input type="hidden" id="id" value="">
            <input type="hidden" id="tcNameValue" value="">
            <input type="hidden" id="outpatientNameValue" value="">
            <input type="hidden" id="menuName" value="TC-回访记录">
        </div>
        <div class="row bigSize">
            <div class="col-sm-12">
                <div class="col-sm-10">
                    <ul class="ul_li clearfix">
                        <li>
                            <label>门诊</label>
                            <select id="outpatientName" name="outpatientName" class="selectBox" onchange="ConsultantRecord.search()">
                            </select>
                        </li>
                        <li>
                            <label>消费状态</label>
                            <select id="consumptionStatus" name="consumptionStatus" class="selectBox" onchange="ConsultantRecord.search()">
                                <option value="">全部</option>
                                <option value="未消费">未消费</option>
                                <option value="只交定金">只交定金</option>
                                <option value="未完成">未完成</option>
                                <option value="完成">完成</option>
                            </select>
                        </li>
                        <li>
                            <label>跟踪状态</label>
                            <select id="followStatus" name="followStatus" class="selectBox" onchange="ConsultantRecord.search()">
                                <option value="">全部</option>
                                <option value="跟踪中">跟踪中</option>
                                <option value="跟踪完成">跟踪完成</option>
                                <option value="跟踪结束">跟踪结束</option>
                            </select>
                        </li>
                        <li>
                            <label>成交状态</label>
                            <select class="selectBox" id="dealStatus" name="dealStatus"
                                    onchange="ConsultantRecord.inquire()">
                                <option value="">全部</option>
                                <option value="已成交">已成交</option>
                                <option value="未成交">未成交</option>
                            </select>
                        </li>
                        <li>
                            <label>TC</label>
                            <select class="selectBox" id="tcName" name="tcName" onchange="ConsultantRecord.search()" ></select>
                        </li>
                    </ul>
                </div>
                <div class="col-sm-2">
                    <div style="width: 288px;height: 39px;border: 1px solid #cccccc;border-radius: 5px">
                        <span class="glyphicon glyphicon-search" style="left: 10px;top: 9px;"></span>
                        <input type="text" id="sreach" placeholder="姓名/电话/微信"
                               style="width: 85%;height: 35px;border: none;float: right;outline:none;margin-top: 1px"
                               onchange="ConsultantRecord.search()">
                    </div>
                </div>
            </div>
        </div>
        <div class="row bigSize" style="margin: 1% 0;">
            <ul class="ul_li clearfix">
                <li>
                    <label style="padding-right: 6px;">回访人</label>
                    <select class="selectBox" id="revisit" name="revisit" onchange="ConsultantRecord.search()" ></select>
                </li>
                <li>
                    <label>回访时间</label>
                    <input type="text" id="startRevisitTime" style="width: 192px;height: 39px;padding-left: 5px;"
                           onclick="laydate({istiem:true,format:'YYYY-MM-DD hh:mm:ss'})">
                    <span>-</span>
                    <input type="text" id="endRevisitTime" style="width: 192px;height: 39px;padding-left: 5px;"
                           onclick="laydate({istiem:true,format:'YYYY-MM-DD hh:mm:ss'})">
                </li>
                <li style="float: right;margin: 0;">
                    <div class="btn_box">
                        @if(shiro.hasPermission("/super_no")){
                        <button type="button" class="btn" onclick="ConsultantRecord.downLoad()">导出</button>
                        @}
                        <button type="button" class="btn" onclick="ConsultantRecord.resetSearch()">清空</button>
                        <button type="button" class="btn" onclick="screenTable()">筛选</button>
                    </div>
                </li>
            </ul>
        </div>
        <div class="row bigSize">
            <div class="col-sm-12" style="background:#2f4050;height: 46px;"></div>
        </div>

        <#table id="ConsultantRecordTable"/>
    </div>
</div>
<script src="${ctxPath}/static/js/common/bootstrap-table-objectd.js"></script>
<script src="${ctxPath}/static/modular/tcCenter/consultant/consultant_record.js"></script>
@}